package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:56
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelBase implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String modelBaseName;

    /**
     * Attribute modelBaseName Be Seted Falg
     */
    private boolean modelBaseNameSetted = false;

    /**
    * Attribute modelBaseName is Null Falg
    */
    private boolean modelBaseNameNull = false;
    private String modelBaseType;

    /**
     * Attribute modelBaseType Be Seted Falg
     */
    private boolean modelBaseTypeSetted = false;

    /**
    * Attribute modelBaseType is Null Falg
    */
    private boolean modelBaseTypeNull = false;
    private String creatorName;

    /**
     * Attribute creatorName Be Seted Falg
     */
    private boolean creatorNameSetted = false;

    /**
    * Attribute creatorName is Null Falg
    */
    private boolean creatorNameNull = false;
    private java.util.Date createTime;

    /**
     * Attribute createTime Be Seted Falg
     */
    private boolean createTimeSetted = false;

    /**
    * Attribute createTime is Null Falg
    */
    private boolean createTimeNull = false;
    private String lastModifierName;

    /**
     * Attribute lastModifierName Be Seted Falg
     */
    private boolean lastModifierNameSetted = false;

    /**
    * Attribute lastModifierName is Null Falg
    */
    private boolean lastModifierNameNull = false;
    private java.util.Date lastModifyTime;

    /**
     * Attribute lastModifyTime Be Seted Falg
     */
    private boolean lastModifyTimeSetted = false;

    /**
    * Attribute lastModifyTime is Null Falg
    */
    private boolean lastModifyTimeNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private long ownerId;

    /**
     * Attribute ownerId Be Seted Falg
     */
    private boolean ownerIdSetted = false;

    /**
    * Attribute ownerId is Null Falg
    */
    private boolean ownerIdNull = false;

    public ProductModelBase() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get modelBaseName
         *
         * @return String
         */
    final public String getModelBaseName() {
        if (isModelBaseNameNull()) {
            return null;
        } else {
            return StringUtils.trim(modelBaseName);
        }
    }

    /**
     * Set modelBaseName
     *
     * @param String
     */
    final public void setModelBaseName(String modelBaseName) {
        this.modelBaseName = StringUtils.trim(modelBaseName);

        this.modelBaseNameSetted = true;

        this.setModelBaseNameNull(this.modelBaseName == null);
    }

    /**
     * Get modelBaseName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModelBaseNameSetted() {
        return this.modelBaseNameSetted;
    }

    /**
     * Set modelBaseName Null
     *
     */
    final public void setModelBaseNameNull() {
        this.modelBaseNameNull = true;
    }

    final public void setModelBaseNameNull(boolean aNullFlag) {
        this.modelBaseNameNull = aNullFlag;
    }

    final public boolean isModelBaseNameNull() {
        return this.modelBaseNameNull;
    }

    /**
         * Get modelBaseType
         *
         * @return String
         */
    final public String getModelBaseType() {
        if (isModelBaseTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(modelBaseType);
        }
    }

    /**
     * Set modelBaseType
     *
     * @param String
     */
    final public void setModelBaseType(String modelBaseType) {
        this.modelBaseType = StringUtils.trim(modelBaseType);

        this.modelBaseTypeSetted = true;

        this.setModelBaseTypeNull(this.modelBaseType == null);
    }

    /**
     * Get modelBaseType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModelBaseTypeSetted() {
        return this.modelBaseTypeSetted;
    }

    /**
     * Set modelBaseType Null
     *
     */
    final public void setModelBaseTypeNull() {
        this.modelBaseTypeNull = true;
    }

    final public void setModelBaseTypeNull(boolean aNullFlag) {
        this.modelBaseTypeNull = aNullFlag;
    }

    final public boolean isModelBaseTypeNull() {
        return this.modelBaseTypeNull;
    }

    /**
         * Get creatorName
         *
         * @return String
         */
    final public String getCreatorName() {
        if (isCreatorNameNull()) {
            return null;
        } else {
            return StringUtils.trim(creatorName);
        }
    }

    /**
     * Set creatorName
     *
     * @param String
     */
    final public void setCreatorName(String creatorName) {
        this.creatorName = StringUtils.trim(creatorName);

        this.creatorNameSetted = true;

        this.setCreatorNameNull(this.creatorName == null);
    }

    /**
     * Get creatorName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreatorNameSetted() {
        return this.creatorNameSetted;
    }

    /**
     * Set creatorName Null
     *
     */
    final public void setCreatorNameNull() {
        this.creatorNameNull = true;
    }

    final public void setCreatorNameNull(boolean aNullFlag) {
        this.creatorNameNull = aNullFlag;
    }

    final public boolean isCreatorNameNull() {
        return this.creatorNameNull;
    }

    /**
         * Get createTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getCreateTime() {
        return createTime;
    }

    /**
     * Set createTime
     *
     * @param java.util.Date
     */
    final public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;

        this.createTimeSetted = true;

        this.setCreateTimeNull(this.createTime == null);
    }

    /**
     * Get createTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreateTimeSetted() {
        return this.createTimeSetted;
    }

    /**
     * Set createTime Null
     *
     */
    final public void setCreateTimeNull() {
        this.createTimeNull = true;
    }

    final public void setCreateTimeNull(boolean aNullFlag) {
        this.createTimeNull = aNullFlag;
    }

    final public boolean isCreateTimeNull() {
        return this.createTimeNull;
    }

    /**
         * Get lastModifierName
         *
         * @return String
         */
    final public String getLastModifierName() {
        if (isLastModifierNameNull()) {
            return null;
        } else {
            return StringUtils.trim(lastModifierName);
        }
    }

    /**
     * Set lastModifierName
     *
     * @param String
     */
    final public void setLastModifierName(String lastModifierName) {
        this.lastModifierName = StringUtils.trim(lastModifierName);

        this.lastModifierNameSetted = true;

        this.setLastModifierNameNull(this.lastModifierName == null);
    }

    /**
     * Get lastModifierName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifierNameSetted() {
        return this.lastModifierNameSetted;
    }

    /**
     * Set lastModifierName Null
     *
     */
    final public void setLastModifierNameNull() {
        this.lastModifierNameNull = true;
    }

    final public void setLastModifierNameNull(boolean aNullFlag) {
        this.lastModifierNameNull = aNullFlag;
    }

    final public boolean isLastModifierNameNull() {
        return this.lastModifierNameNull;
    }

    /**
         * Get lastModifyTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLastModifyTime() {
        return lastModifyTime;
    }

    /**
     * Set lastModifyTime
     *
     * @param java.util.Date
     */
    final public void setLastModifyTime(java.util.Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;

        this.lastModifyTimeSetted = true;

        this.setLastModifyTimeNull(this.lastModifyTime == null);
    }

    /**
     * Get lastModifyTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifyTimeSetted() {
        return this.lastModifyTimeSetted;
    }

    /**
     * Set lastModifyTime Null
     *
     */
    final public void setLastModifyTimeNull() {
        this.lastModifyTimeNull = true;
    }

    final public void setLastModifyTimeNull(boolean aNullFlag) {
        this.lastModifyTimeNull = aNullFlag;
    }

    final public boolean isLastModifyTimeNull() {
        return this.lastModifyTimeNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get ownerId
         *
         * @return long
         */
    final public long getOwnerId() {
        return ownerId;
    }

    /**
     * Set ownerId
     *
     * @param long
     */
    final public void setOwnerId(long ownerId) {
        this.ownerId = ownerId;

        this.ownerIdSetted = true;

        this.setOwnerIdNull(false);
    }

    /**
     * Get ownerId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOwnerIdSetted() {
        return this.ownerIdSetted;
    }

    /**
     * Set ownerId Null
     *
     */
    final public void setOwnerIdNull() {
        this.ownerIdNull = true;
    }

    final public void setOwnerIdNull(boolean aNullFlag) {
        this.ownerIdNull = aNullFlag;
    }

    final public boolean isOwnerIdNull() {
        return this.ownerIdNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelBase) == false) {
            return false;
        }

        ProductModelBase other = (ProductModelBase) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("modelBaseName=");
        buffer.append(this.modelBaseName);

        buffer.append("modelBaseType=");
        buffer.append(this.modelBaseType);

        buffer.append("creatorName=");
        buffer.append(this.creatorName);

        buffer.append("createTime=");
        buffer.append(this.createTime);

        buffer.append("lastModifierName=");
        buffer.append(this.lastModifierName);

        buffer.append("lastModifyTime=");
        buffer.append(this.lastModifyTime);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("ownerId=");
        buffer.append(this.ownerId);

        buffer.append("]");

        return buffer.toString();
    }
}
